package vq.codec.entities;

import java.util.ArrayList;
import java.util.List;

public class Dat {

	private int height;
	private int width;
	
	private int grayScale;
	
	private List<List<Integer>> vectors;
	
	public Dat() {
		this.vectors = new ArrayList<List<Integer>>();
	}
	
	public Dat(int height, int width, int grayScale,
			List<List<Integer>> vectors) {
		this();
		this.height = height;
		this.width = width;
		this.grayScale = grayScale;
		this.vectors = vectors;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getGrayScale() {
		return grayScale;
	}

	public void setGrayScale(int grayScale) {
		this.grayScale = grayScale;
	}

	public List<List<Integer>> getVectors() {
		return vectors;
	}

	public void setVectors(List<List<Integer>> vectors) {
		this.vectors = vectors;
	}
	
	public int getQuantizatorDimension() {
		if (this.vectors.size() != 0) {
			return this.vectors.get(0).size();
		} else {
			return 0;
		}
	}
	
}
